#!/usr/bin/python
"""Emmitter functionality."""
import dbus
import dbus.service
import dbus.glib


class Emitter(dbus.service.Object):
    """Emitter DBUS service object."""

    def __init__(self, bus_name, object_path):
        """Initialize the emitter DBUS service object."""
        dbus.service.Object.__init__(self, bus_name, object_path)

    @dbus.service.signal('tld.domain.sub.event')
    def test(self,a,b):
        """Emmit a test signal."""
        print('Emitted a test signal')

"""
Emit a test signal on the dbus.
Emit a receiver_quit signal which should stop the receiver.
"""
session_bus = dbus.SessionBus()
bus_name = dbus.service.BusName('sub.domain.tld', bus=session_bus)
emitter = Emitter(bus_name, '/tld/domain/sub/event')
emitter.test(123,78)
